/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Menu_Principal.java
 *
 * Created on 18/04/2012, 22:50:43
 */
package View;

import Modelo.Medico;
import Modelo.Sala;

/**
 *
 * @author Marcelo Zanotelli
 */
public class TelaPrincipal extends javax.swing.JFrame {

    /** Creates new form Menu_Principal */
    public TelaPrincipal() {
        initComponents();
        this.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH); //Maximiza a tela
        abrirLogin();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLMensagem = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMArquivo = new javax.swing.JMenu();
        jMPaciente = new javax.swing.JMenuItem();
        jMProduto = new javax.swing.JMenuItem();
        jMEnfermeiro = new javax.swing.JMenuItem();
        jMEspecialidade = new javax.swing.JMenuItem();
        jMMedico = new javax.swing.JMenuItem();
        jMAtendimento = new javax.swing.JMenuItem();
        jMQuarto = new javax.swing.JMenuItem();
        jMISala = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMConsulta = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMiPesquisaMedico = new javax.swing.JMenuItem();
        jMiPesquisaPaciente = new javax.swing.JMenuItem();
        jMiPesquisaProduto = new javax.swing.JMenuItem();
        jMiPesquisaQuarto = new javax.swing.JMenuItem();
        jMiPesquisaAtendimento = new javax.swing.JMenuItem();
        jMiPesquisaEnfermeiro = new javax.swing.JMenuItem();
        jMHelp = new javax.swing.JMenu();
        jMCredito = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("HOSPITAL REST IN PEACE");

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jTextField1.setEditable(false);
        jTextField1.setFont(new java.awt.Font("Calibri", 1, 48)); // NOI18N
        jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField1.setText("HOSPITAL");
        jTextField1.setBorder(null);
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });

        jTextField2.setEditable(false);
        jTextField2.setFont(new java.awt.Font("Calibri", 1, 48)); // NOI18N
        jTextField2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField2.setText("REST IN PEACE");
        jTextField2.setBorder(null);
        jTextField2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField2ActionPerformed(evt);
            }
        });

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/yb.jpg"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(270, 270, 270)
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 746, Short.MAX_VALUE)
                .addGap(784, 784, 784))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(357, 357, 357)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 315, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(898, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 530, Short.MAX_VALUE)
                .addGap(11, 11, 11)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jLMensagem.setForeground(new java.awt.Color(255, 0, 0));
        jLMensagem.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        jMArquivo.setText("Cadastros");
        jMArquivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMArquivoActionPerformed(evt);
            }
        });

        jMPaciente.setText("Paciente");
        jMPaciente.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jMPacienteMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jMPacienteMouseExited(evt);
            }
        });
        jMPaciente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMPacienteActionPerformed(evt);
            }
        });
        jMArquivo.add(jMPaciente);

        jMProduto.setText("Produtos");
        jMProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMProdutoActionPerformed(evt);
            }
        });
        jMArquivo.add(jMProduto);

        jMEnfermeiro.setText("Enfermeiro");
        jMEnfermeiro.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jMEnfermeiroMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jMEnfermeiroMouseExited(evt);
            }
        });
        jMEnfermeiro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMEnfermeiroActionPerformed(evt);
            }
        });
        jMArquivo.add(jMEnfermeiro);

        jMEspecialidade.setText("Especialidades");
        jMEspecialidade.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jMEspecialidadeMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jMEspecialidadeMouseExited(evt);
            }
        });
        jMEspecialidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMEspecialidadeActionPerformed(evt);
            }
        });
        jMArquivo.add(jMEspecialidade);

        jMMedico.setText("Médico");
        jMMedico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMMedicoActionPerformed(evt);
            }
        });
        jMArquivo.add(jMMedico);

        jMAtendimento.setText("Atendimento");
        jMAtendimento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMAtendimentoActionPerformed(evt);
            }
        });
        jMArquivo.add(jMAtendimento);

        jMQuarto.setText("Quarto");
        jMQuarto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMQuartoActionPerformed(evt);
            }
        });
        jMArquivo.add(jMQuarto);

        jMISala.setText("Sala");
        jMISala.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMISalaActionPerformed(evt);
            }
        });
        jMArquivo.add(jMISala);

        jMenuBar1.add(jMArquivo);

        jMenu1.setText("Agendamento");

        jMConsulta.setText("Consulta");
        jMConsulta.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jMConsultaMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jMConsultaMouseExited(evt);
            }
        });
        jMConsulta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMConsultaActionPerformed(evt);
            }
        });
        jMenu1.add(jMConsulta);

        jMenuBar1.add(jMenu1);

        jMenu3.setText("Consultas");
        jMenu3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu3ActionPerformed(evt);
            }
        });

        jMiPesquisaMedico.setText("Médico");
        jMiPesquisaMedico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiPesquisaMedicoActionPerformed(evt);
            }
        });
        jMenu3.add(jMiPesquisaMedico);

        jMiPesquisaPaciente.setText("Paciente");
        jMiPesquisaPaciente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiPesquisaPacienteActionPerformed(evt);
            }
        });
        jMenu3.add(jMiPesquisaPaciente);

        jMiPesquisaProduto.setText("Produto");
        jMiPesquisaProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiPesquisaProdutoActionPerformed(evt);
            }
        });
        jMenu3.add(jMiPesquisaProduto);

        jMiPesquisaQuarto.setText("Quarto");
        jMiPesquisaQuarto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiPesquisaQuartoActionPerformed(evt);
            }
        });
        jMenu3.add(jMiPesquisaQuarto);

        jMiPesquisaAtendimento.setText("Atendimento");
        jMiPesquisaAtendimento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiPesquisaAtendimentoActionPerformed(evt);
            }
        });
        jMenu3.add(jMiPesquisaAtendimento);

        jMiPesquisaEnfermeiro.setText("Enfermeiro");
        jMiPesquisaEnfermeiro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiPesquisaEnfermeiroActionPerformed(evt);
            }
        });
        jMenu3.add(jMiPesquisaEnfermeiro);

        jMenuBar1.add(jMenu3);

        jMHelp.setText("Ajuda");

        jMCredito.setText("Créditos");
        jMHelp.add(jMCredito);

        jMenuBar1.add(jMHelp);

        jMenu2.setText("Sair");
        jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenu2MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jMenu2MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jMenu2MouseExited(evt);
            }
        });
        jMenu2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu2ActionPerformed(evt);
            }
        });
        jMenuBar1.add(jMenu2);

        jMenu4.setText("Atendimento");

        jMenuItem1.setText("Atendimento Medico");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem1);

        jMenuItem2.setText("Dar alta");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem2);

        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLMensagem, javax.swing.GroupLayout.PREFERRED_SIZE, 1461, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLMensagem, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    public void abrirLogin(){
        PrinLogin login = new PrinLogin(this);
        login.setVisible(true);
        this.setEnabled(false);
    }        
        
    private void jMPacienteMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMPacienteMouseExited
        jLMensagem.setText(" ");
    }//GEN-LAST:event_jMPacienteMouseExited

    private void jMPacienteMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMPacienteMouseEntered
        jLMensagem.setText("Cadastro de paciente. ");
    }//GEN-LAST:event_jMPacienteMouseEntered

    private void jMEnfermeiroMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMEnfermeiroMouseEntered
        jLMensagem.setText("Cadastro de enfermeiro.");
    }//GEN-LAST:event_jMEnfermeiroMouseEntered

    private void jMEnfermeiroMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMEnfermeiroMouseExited
        jLMensagem.setText(" ");
    }//GEN-LAST:event_jMEnfermeiroMouseExited

    private void jMEspecialidadeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMEspecialidadeMouseEntered
        jLMensagem.setText("Cadastro de especialidades.");
    }//GEN-LAST:event_jMEspecialidadeMouseEntered

    private void jMEspecialidadeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMEspecialidadeMouseExited
        jLMensagem.setText(" ");
    }//GEN-LAST:event_jMEspecialidadeMouseExited

    private void jMenu2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu2MouseClicked
        this.dispose();
    }//GEN-LAST:event_jMenu2MouseClicked

    private void jMConsultaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMConsultaMouseEntered
        jLMensagem.setText("Agendamento de consultas.");
    }//GEN-LAST:event_jMConsultaMouseEntered

    private void jMConsultaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMConsultaMouseExited
        jLMensagem.setText(" ");
    }//GEN-LAST:event_jMConsultaMouseExited

    private void jMenu2MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu2MouseEntered
        jLMensagem.setText("Sair do programa.");
    }//GEN-LAST:event_jMenu2MouseEntered

    private void jMenu2MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu2MouseExited
        jLMensagem.setText(" ");
    }//GEN-LAST:event_jMenu2MouseExited

    private void jMPacienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMPacienteActionPerformed
        new LocPaciente().setVisible(true);              
    }//GEN-LAST:event_jMPacienteActionPerformed

    private void jMArquivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMArquivoActionPerformed
        //new LocMedico().se
    }//GEN-LAST:event_jMArquivoActionPerformed

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField2ActionPerformed

    private void jMenu2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu2ActionPerformed
        System.exit(0);

    }//GEN-LAST:event_jMenu2ActionPerformed

    private void jMAtendimentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMAtendimentoActionPerformed
        // TODO add your handling code here:
        int i = 1;
        CadAtendimento caate = new CadAtendimento(i);
        caate.setVisible(true);
    }//GEN-LAST:event_jMAtendimentoActionPerformed

    private void jMConsultaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMConsultaActionPerformed
        new LocConsulta().setVisible(true);
    }//GEN-LAST:event_jMConsultaActionPerformed

    private void jMProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMProdutoActionPerformed
       CadProduto cadProd = new CadProduto(this,1);
       cadProd.setVisible(true);
    }//GEN-LAST:event_jMProdutoActionPerformed

    private void jMQuartoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMQuartoActionPerformed
        new LocQuarto().setVisible(true);
    }//GEN-LAST:event_jMQuartoActionPerformed

    private void jMiPesquisaMedicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiPesquisaMedicoActionPerformed
        /*// TODO add your handling code here:
        int i =2;
        CadMedico came = new CadMedico(this,i);
        came.setVisible(true);*/
    }//GEN-LAST:event_jMiPesquisaMedicoActionPerformed

    private void jMiPesquisaPacienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiPesquisaPacienteActionPerformed
        new LocPaciente().setVisible(true);
    }//GEN-LAST:event_jMiPesquisaPacienteActionPerformed

    private void jMEspecialidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMEspecialidadeActionPerformed
        
    }//GEN-LAST:event_jMEspecialidadeActionPerformed

    private void jMEnfermeiroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMEnfermeiroActionPerformed
        new LocEnfermeiro().setVisible(true);
    }//GEN-LAST:event_jMEnfermeiroActionPerformed

    private void jMenu3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu3ActionPerformed

    private void jMiPesquisaProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiPesquisaProdutoActionPerformed
        // TODO add your handling code here:
        CadProduto cadpro = new CadProduto(this,2);
        cadpro.setVisible(true);
    }//GEN-LAST:event_jMiPesquisaProdutoActionPerformed

    private void jMiPesquisaQuartoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiPesquisaQuartoActionPerformed
        // TODO add your handling code here:
        new LocQuarto().setVisible(true);
    }//GEN-LAST:event_jMiPesquisaQuartoActionPerformed

    private void jMiPesquisaAtendimentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiPesquisaAtendimentoActionPerformed
        // TODO add your handling code here:
        CadAtendimento cada= new CadAtendimento(3);
        cada.setVisible(true);
    }//GEN-LAST:event_jMiPesquisaAtendimentoActionPerformed

    private void jMiPesquisaEnfermeiroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiPesquisaEnfermeiroActionPerformed

    }//GEN-LAST:event_jMiPesquisaEnfermeiroActionPerformed

    private void jMISalaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMISalaActionPerformed
        new LocSala().setVisible(true);
    }//GEN-LAST:event_jMISalaActionPerformed

    private void jMMedicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMMedicoActionPerformed
        new LocMedico().setVisible(true);
    }//GEN-LAST:event_jMMedicoActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        new LocAtmMedico().setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        new LocAtmDarAltaMedica().setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new TelaPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLMensagem;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMArquivo;
    private javax.swing.JMenuItem jMAtendimento;
    private javax.swing.JMenuItem jMConsulta;
    private javax.swing.JMenuItem jMCredito;
    private javax.swing.JMenuItem jMEnfermeiro;
    private javax.swing.JMenuItem jMEspecialidade;
    private javax.swing.JMenu jMHelp;
    private javax.swing.JMenuItem jMISala;
    private javax.swing.JMenuItem jMMedico;
    private javax.swing.JMenuItem jMPaciente;
    private javax.swing.JMenuItem jMProduto;
    private javax.swing.JMenuItem jMQuarto;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMiPesquisaAtendimento;
    private javax.swing.JMenuItem jMiPesquisaEnfermeiro;
    private javax.swing.JMenuItem jMiPesquisaMedico;
    private javax.swing.JMenuItem jMiPesquisaPaciente;
    private javax.swing.JMenuItem jMiPesquisaProduto;
    private javax.swing.JMenuItem jMiPesquisaQuarto;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration//GEN-END:variables
}
